package com.siyoumi.app.sys.task;

import com.siyoumi.app.sys.task.service.del_data.DelDataLog;
import com.siyoumi.task.EnumTask;
import com.siyoumi.task.TaskController;
import com.siyoumi.util.XReturn;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

//删除数据
//http://dev.x.siyoumi.com/task/sys/task_del_data_handle
@RestController
@RequestMapping("/task/sys/task_del_data_handle")
public class TaskDelDataHandle
        extends TaskController {

    @Override
    protected Boolean handle1() {
        return false;
    }

    @Override
    protected List handleData() {
        return List.of("1");
    }

    @Override
    protected void handleBefore(Object data) {

    }

    @Override
    protected XReturn handle(Object data) {
        DelDataLog.of(DelDataLog.class).handle();

        return EnumTask.STOP.getR();
    }
}
